package com.js.mapper;

import com.js.pojo.Student;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface StudentMapper {
    //添加学生
    int addStudent(Student student);
    //根据id删除学生
    int deleteStudentById(@Param("id") int id);
    //更新Student
    int updateStudent(Student student);
    //查找(根据id)
    Student queryStudentById(@Param("id") int id);
    //查找(根据 学生账号
    Student queryStudentByAccount(@Param("account") String account);
    //查询全部学生
    List<Student> queryAllStudent();
    //模糊查询 学生姓名
    List<Student> queryStudentByName(String StudentName);

}
